package be.kuleuven.cs.mume.animations;
import org.mt4j.components.TransformSpace;
import org.mt4j.components.visibleComponents.shapes.AbstractShape;
import org.mt4j.components.visibleComponents.shapes.MTLine;
import org.mt4j.util.animation.AnimationEvent;
import org.mt4j.util.animation.IAnimationListener;

	public class LineRotationAnimationListener implements IAnimationListener {
		public void processAnimationEvent(AnimationEvent ae) {

			float factor = ae.getCurrentStepDelta();
			AbstractShape target = (AbstractShape)ae.getTargetObject();
			target.rotateZ(target.getCenterPointGlobal(), factor,TransformSpace.GLOBAL);
		}
	}